package com.hqyj.controller;


import com.hqyj.pojo.AnswerSheet;
import com.hqyj.service.AnswerSheetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.HashMap;

/**
 * <p>
 * 答题记录表 前端控制器
 * </p>
 *
 * @author rock
 * @since 2021-11-19
 */
@RestController
@RequestMapping("/answerSheet")
public class AnswerSheetController {

    /**
     * 注入 AnswerSheetService 接口
     * */
    @Autowired
    private AnswerSheetService answerSheetService;

    @PostMapping("/submitPaper")
    public HashMap<String, Object> submitPaper(@RequestBody AnswerSheet answerSheet){
        return answerSheetService.submitPaper(answerSheet);
    }

}

